package com.krisyu.decoratorPattern.template;

/**
 * @DATE 2022/1/7
 * @Author KrisYu
 * @Description
 */
public class ConcreteDecorator2 extends AbstractDecorator{
    public ConcreteDecorator2(Component _component) {
        super(_component);
    }

    private void decorateMethod(){
        System.out.println("ConcreteDecorator2 decorating ....");
    }

    @Override
    public void operation() {
        decorateMethod();
        super.operation();
    }
}
